package apifm

import (
	"net/http"

	"mall/common/resultx"
	"mall/service/forum/api/internal/logic/apifm"
	"mall/service/forum/api/internal/svc"
)

func CheckTokenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := apifm.NewCheckTokenLogic(r.Context(), svcCtx)
		resp, err := l.CheckToken()
		resultx.HttpResult(r, w, resp, err)
	}
}
